import { createApp } from 'vue';
import App from './App.vue';
const app = createApp(App);
import router from './router';

import './utils/localStorage.js';

import { createVNode, render } from 'vue';
import MusicPlayer from '@/components/MusicPlayer.vue';
const MusicPlayerComponent = createVNode(MusicPlayer);
render(MusicPlayerComponent, document.body); // dom 位置
app.config.globalProperties.$playerIsShow = MusicPlayerComponent.component.exposed.playerIsShow;
app.config.globalProperties.$playSong = MusicPlayerComponent.component.exposed.playSong;

app.use(router).mount('#app');
